package com.gxuwz.business.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.gxuwz.business.dao.impl.StandardDAO;
import com.gxuwz.business.entity.Standard;
import com.gxuwz.business.service.IStandardService;
import com.gxuwz.util.Pager;

@Service("standardService")
public class StandardServiceImpl implements IStandardService {
	
	@Autowired
	private StandardDAO standardDAO;

	@Override
	public boolean add(Standard standard) {
		// TODO Auto-generated method stub
		return standardDAO.add(standard);
	}

	@Override
	public boolean update(Standard standard) {
		// TODO Auto-generated method stub
		return standardDAO.update(standard);
	}

	@Override
	public boolean delete(Standard standard) {
		// TODO Auto-generated method stub
		return standardDAO.delete(standard);
	}

	@Override
	public Standard findById(Standard standard) {
		// TODO Auto-generated method stub
		return standardDAO.findById(standard);
	}

	@Override
	public List<Standard> getRightAll() {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public Pager<Standard> getByPager(Standard standard, Integer page, Integer limit) {
		// TODO Auto-generated method stub
		return standardDAO.getByPager(standard, page, limit);
	}

	@Override
	public boolean checkStandName(Standard standard) {
		// TODO Auto-generated method stub
		return standardDAO.checkStandName(standard);
	}

	@Override
	public List<Standard> getAll(Class T) {
		return standardDAO.getAll(T);
	}


}
